package com.herr.profile;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class ProfileConfig {
    @Bean
    @Profile("dev")
    public ProfileBean devProfileBean(){
        return new ProfileBean("from dev");
    }

    @Bean
    @Profile("prod")
    public ProfileBean proProfileBean(){
        return new ProfileBean("from pro");
    }
}
